Skip to content

fix(auth): invalidate user list after single-user delete#2971

Open
singhvishalkr wants to merge 1 commit intoappwrite:mainfrom
singhvishalkr:fix/10196-invalidate-user-count-on-delete
Open

fix(auth): invalidate user list after single-user delete#2971
singhvishalkr wants to merge 1 commit intoappwrite:mainfrom
singhvishalkr:fix/10196-invalidate-user-count-on-delete

Conversation

@singhvishalkr
Copy link
Copy Markdown

Fixes appwrite/appwrite#10196

After deleting a single user from the user detail view, the Auth panel user count was not updating because invalidate(Dependencies.USERS) was missing (unlike batch delete which already had it).

Added invalidate(Dependencies.USERS) after successful single-user delete to refresh the user list and count.

@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps bot commented Apr 11, 2026

Greptile Summary

Adds await invalidate(Dependencies.USERS) after a successful single-user delete in deleteUser.svelte, mirroring the existing finally-block invalidation in the batch-delete path. This fixes the stale user count shown in the Auth panel after deleting from the detail view.

Confidence Score: 5/5

Safe to merge — one-line targeted fix with no side effects.

The change is minimal and correct: it adds the missing cache invalidation call in the success path, exactly matching how the batch-delete already handles it. No regressions are introduced.

No files require special attention.

Important Files Changed

Filename Overview
src/routes/(console)/project-[region]-[project]/auth/user-[user]/deleteUser.svelte Adds invalidate(Dependencies.USERS) after single-user deletion, consistent with the batch-delete pattern in +page.svelte.

Reviews (1): Last reviewed commit: "fix(auth): invalidate user list after si..." | Re-trigger Greptile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🐛 Bug Report: User count not updating after deletions in Auth panel

1 participant